package practice;

public class sqrtNumWithRule {
    public static void main(String[] args) {
        printRuleNum();
    }
    public static void printRuleNum() {
        for(double i = 1;i <= 100000;i++){
            double num = i;
            if((i + 100) % Math.sqrt((i + 100)) == 0){
                if((i + 268) % Math.sqrt((i + 268)) == 0){
                    System.out.println((int)i);
                }
            }
        }
    }
}
